# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=tokodon
pkgver=23.08.4
pkgrel=0
pkgdesc="A Mastodon client for Plasma and Plasma Mobile"
url="https://invent.kde.org/network/tokodon/"
# armhf blocked by extra-cmake-modules
# riscv64, ppc64le, s390x: blocked by proposals
arch="all !armhf !riscv64 !ppc64le !s390x"
license="GPL-3.0-only AND CC0-1.0"
depends="
	kirigami-addons
	kirigami2
	purpose5
	"
makedepends="
	extra-cmake-modules
	kconfig5-dev
	kcoreaddons5-dev
	kdbusaddons5-dev
	ki18n5-dev
	kio5-dev
	kirigami-addons-dev
	kirigami2-dev
	knotifications5-dev
	mpv-dev
	qqc2-desktop-style5-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qtwebsockets-dev
	qtkeychain-dev
	samurai
	"
subpackages="$pkgname-lang"
_repo_url="https://invent.kde.org/network/tokodon.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/tokodon-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b7b2eef7b5e76d9f8e7d003af2c8a19531585a91820821c419d622f5029a4bc55d056e0d269ee41a27959e6a9b578da493afaa38bbdedb1b4156b8640f9efd06  tokodon-23.08.4.tar.xz
"
